<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改病例基本信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<!--startprint1-->
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-CasePersonalInfo-edit" th:object="${casePersonalInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">病例ID：</label>
                    <div class="col-sm-8">
                        <input name="caseId" th:field="*{caseId}"  class="form-control" type="text"  required="required" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">证件号码：</label>
                    <div class="col-sm-8">
                        <input name="cardId" th:field="*{cardId}"  class="form-control" type="text"  required="required" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">姓名：</label>
                    <div class="col-sm-8">
                        <input name="name" th:field="*{name}"  class="form-control" type="text"  required="required" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">性别：</label>
                    <div class="col-sm-8">
                        <input name="gender" th:field="*{gender}"  class="form-control" type="text"  required="required" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">年龄：</label>
                    <div class="col-sm-8">
                        <input name="age" th:field="*{age}"  class="form-control" type="text"  required="required" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">联系电话：</label>
                    <div class="col-sm-8">
                        <input name="tel" th:field="*{tel}"  class="form-control" type="text"  required="required" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">出生日期：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="birthDate" th:value="*{birthDate}" class="form-control" placeholder="yyyy-MM-dd" type="text" readonly="readonly">
                        </div>
                    </div>
                </div>
                <a class="btn btn-success" onclick="preview()"><i class="fa fa-plus"></i> 打印</a>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">家庭住址：</label>
                    <div class="col-sm-8">
                        <textarea name="address" class="form-control" readonly="readonly">[[*{address}]]</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">详细地址：</label>
                    <div class="col-sm-8">
                        <textarea name="addressDetail" class="form-control" readonly="readonly">[[*{addressDetail}]]</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">身高：</label>
                    <div class="col-sm-8">
                        <input name="height" th:field="*{height}"  class="form-control" type="text"  required="required" readonly="readonly">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">体重：</label>
                    <div class="col-sm-8">
                        <input name="weight" th:field="*{weight}"  class="form-control" type="text"  required="required" readonly="readonly">
                    </div>
                </div>

            </div>
        </form>
    </div>

    <div class="col-sm-12 ">
        <h1>家庭成员</h1>
        <table id="bootstrap-table-family"></table>
    </div>


    <div class="col-sm-12 ">
        <h1>健康情况</h1>
        <table id="bootstrap-table-health"></table>
    </div>

    <div class="col-sm-12 ">
        <h1>境外输入</h1>
        <table id="bootstrap-table-input"></table>
    </div>
    <br><br>

    <div class="col-sm-12 ">
        <h1>接种信息</h1>
        <table id="bootstrap-table-vac"></table>
    </div>

    <div class="col-sm-12 ">
        <h1>病例发现</h1>
        <table id="bootstrap-table-disc"></table>
    </div>

    <div class="col-sm-12 ">
        <h1>危险因素</h1>
        <table id="bootstrap-table-dang"></table>
    </div>

    <div class="col-sm-12 ">
        <h1>行程轨迹</h1>
        <table id="bootstrap-table-traj"></table>
    </div>

    <div class="col-sm-12 ">
        <h1>聚集活动</h1>
        <table id="bootstrap-table-party"></table>
    </div>
<!--endprint1-->

    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        function preview(oper){
            if (oper < 10){
                bdhtml=window.document.body.innerHTML;//获取当前页的html代码
                sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域
                eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域
                prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18); //从开始代码向后取html
                prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//从结束代码向前取html
                window.document.body.innerHTML=prnhtml;
                window.print();
                window.document.body.innerHTML=bdhtml;
            }
            else {
                window.print();
            }
        };

        var prefix = ctx + "system/CaseFamilyMembers";
        $(function() {
            var options = {
                id: "bootstrap-table-family",
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "病例家庭成员",
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'id',
                        title: '',
                        visible: false
                    },
                    {
                        field: 'relationship',
                        title: '成员关系'
                    },
                    {
                        field: 'name',
                        title: '姓名'
                    },
                    {
                        field: 'gender',
                        title: '性别'
                    },
                    {
                        field: 'cardId',
                        title: '身份证号'
                    },
                    {
                        field: 'tel',
                        title: '联系电话'
                    }]
            };
            $.table.init(options);
        });

        var prefix_health = ctx + "system/CaseHealthCondition";
        $(function() {
            var options = {
                url: prefix_health + "/list",
                id: "bootstrap-table-health",
                createUrl: prefix_health + "/add",
                updateUrl: prefix_health + "/edit/{id}",
                removeUrl: prefix_health + "/remove",
                exportUrl: prefix_health + "/export",
                modalName: "病例健康状况",
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'id',
                        title: '',
                        visible: false
                    },
                    {
                        field: 'discomfort',
                        title: '是否不适'
                    },
                    {
                        field: 'symptom',
                        title: '近期不适症状'
                    },
                    {
                        field: 'otherSymptom',
                        title: '其他症状'
                    },
                    {
                        field: 'ifHospitalized',
                        title: '是否就医'
                    },
                    {
                        field: 'whereHospitalized',
                        title: '何处就医'
                    },
                    {
                        field: 'doctorOpinion',
                        title: '医生意见'
                    },
                    {
                        field: 'ifPregnant',
                        title: '是否怀孕'
                    },
                    {
                        field: 'gestationalWeek',
                        title: '孕周'
                    },
                    {
                        field: 'ifSmoke',
                        title: '是否吸烟'
                    },
                    {
                        field: 'smokeFre',
                        title: '吸烟频率'
                    },
                    {
                        field: 'diseaseHistory',
                        title: '既往疾病史'
                    }]
            };
            $.table.init(options);
        });

        var prefix_vac = ctx + "system/CaseVaccination";
        $(function() {
            var options2 = {
                id : "bootstrap-table-vac",
                url: prefix_vac + "/list",
                createUrl: prefix_vac + "/add",
                updateUrl: prefix_vac + "/edit/{id}",
                removeUrl: prefix_vac + "/remove",
                exportUrl: prefix_vac + "/export",
                modalName: "病例接种疫苗情况",
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'id',
                        title: 'id',
                        visible: false
                    },
                    {
                        field: 'times',
                        title: '接种次数'
                    },
                    {
                        field: 'firstDate',
                        title: '第一针疫苗接种时间'
                    },
                    {
                        field: 'firstBrand',
                        title: '第一针疫苗接种品牌'
                    },
                    {
                        field: 'secondDate',
                        title: '第二针疫苗接种时间'
                    },
                    {
                        field: 'secondBrand',
                        title: '第二针疫苗接种品牌'
                    },
                    {
                        field: 'thirdDate',
                        title: '第三针疫苗接种时间'
                    },
                    {
                        field: 'thirdBrand',
                        title: '第三针疫苗接种品牌'
                    }]
            };
            $.table.init(options2);
        });

        var prefix_traj = ctx + "system/CaseTravelTrajectory";
        $(function() {
            var options = {
                url: prefix_traj + "/list",
                id : "bootstrap-table-traj",
                createUrl: prefix_traj + "/add",
                updateUrl: prefix_traj + "/edit/{id}",
                removeUrl: prefix_traj + "/remove",
                exportUrl: prefix_traj + "/export",
                modalName: "病例行程轨迹",
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'id',
                        title: 'id',
                        visible: false
                    },
                    {
                        field: 'start',
                        title: '起点'
                    },
                    {
                        field: 'startDetail',
                        title: '具体起点'
                    },
                    {
                        field: 'startDate',
                        title: '起点日期'
                    },
                    {
                        field: 'startTime',
                        title: '起点具体时间'
                    },
                    {
                        field: 'traffic',
                        title: '交通方式'
                    },
                    {
                        field: 'traDetail',
                        title: '详细交通方式'
                    },
                    {
                        field: 'peers',
                        title: '同行人员'
                    },
                    {
                        field: 'end',
                        title: '终点'
                    },
                    {
                        field: 'endDetail',
                        title: '具体终点'
                    },
                    {
                        field: 'endDate',
                        title: '终点日期'
                    },
                    {
                        field: 'endTime',
                        title: '终点具体时间'
                    },
                    {
                        field: 'journeyDet',
                        title: '行程文本描述'
                    }]
            };
            $.table.init(options);
        });

        var prefix_input = ctx + "system/inputCaseOverseasInput";
        $(function() {
            var options = {
                url: prefix_input + "/list",
                id: "bootstrap-table-input",
                createUrl: prefix_input + "/add",
                updateUrl: prefix_input + "/edit/{id}",
                removeUrl: prefix_input + "/remove",
                exportUrl: prefix_input + "/export",
                modalName: "病例境外输入信息",
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'id',
                        title: '',
                        visible: false
                    },
                    {
                        field: 'nationality',
                        title: '国籍'
                    },
                    {
                        field: 'passportNo',
                        title: '护照号'
                    },
                    {
                        field: 'POE',
                        title: '入境口岸'
                    },
                    {
                        field: 'entryDate',
                        title: '入境日期'
                    },
                    {
                        field: 'entryTransport',
                        title: '入境交通方式'
                    },
                    {
                        field: 'traDetail',
                        title: '详细交通方式'
                    }]
            };
            $.table.init(options);
        });

        var prefix_disc = ctx + "system/CaseDiscoveryTreatment";
        $(function() {
            var options = {
                url: prefix_disc + "/list",
                id: "bootstrap-table-disc",
                createUrl: prefix_disc + "/add",
                updateUrl: prefix_disc + "/edit/{id}",
                removeUrl: prefix_disc + "/remove",
                exportUrl: prefix_disc + "/export",
                modalName: "病例发现与就诊信息",
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'id',
                        title: '',
                        visible: false
                    },
                    {
                        field: 'discoveryWay',
                        title: '病例发现途径'
                    },
                    {
                        field: 'otherWay',
                        title: '其他途径'
                    },
                    {
                        field: 'admissionDate',
                        title: '入院日期'
                    },
                    {
                        field: 'symptomsAndSigns',
                        title: '入院时症状和体征'
                    },
                    {
                        field: 'otherSymptoms',
                        title: '其他症状和体征'
                    },
                    {
                        field: 'ifComplication',
                        title: '有无并发症'
                    },
                    {
                        field: 'complication',
                        title: '并发症'
                    },
                    {
                        field: 'otherComplication',
                        title: '其他并发症'
                    },
                    {
                        field: 'ifImagingFeatures',
                        title: 'CT'
                    },
                    {
                        field: 'checkupDate',
                        title: '检查日期'
                    },
                    {
                        field: 'dischargeDate',
                        title: '出院日期'
                    }]
            };
            $.table.init(options);
        });

        var prefix_dang = ctx + "system/CaseDangerExposure";
        $(function() {
            var options = {
                url: prefix_dang + "/list",
                id: "bootstrap-table-dang",
                createUrl: prefix_dang + "/add",
                updateUrl: prefix_dang + "/edit/{id}",
                removeUrl: prefix_dang + "/remove",
                exportUrl: prefix_dang + "/export",
                modalName: "危险因素",
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'id',
                        title: 'id',
                        visible: false
                    },
                    {
                        field: 'job',
                        title: '职业'
                    },
                    {
                        field: 'jobDetail',
                        title: '具体工作性质'
                    },
                    {
                        field: 'otherJob',
                        title: '其他工作'
                    },
                    {
                        field: 'ifPregnant',
                        title: '是否怀孕'
                    },
                    {
                        field: 'gestationalWeek',
                        title: '孕周'
                    },
                    {
                        field: 'smokeFre',
                        title: '是否吸烟'
                    },
                    {
                        field: 'diseaseHistory',
                        title: '既往疾病史'
                    },
                    {
                        field: 'otherDis',
                        title: '其他疾病'
                    },
                    {
                        field: 'radiobutton1',
                        title: '统计单选1'
                    },
                    {
                        field: 'address',
                        title: '地址'
                    },
                    {
                        field: 'radiobutton2',
                        title: '统计单选2'
                    },
                    {
                        field: 'nation',
                        title: '国家'
                    },
                    {
                        field: 'radiobutton3',
                        title: '统计单选3'
                    },
                    {
                        field: 'radiobutton4',
                        title: '统计单选4'
                    },
                    {
                        field: 'radiobutton5',
                        title: '统计单选5'
                    },
                    {
                        field: 'radiobutton6',
                        title: '统计单选6'
                    }]
            };
            $.table.init(options);
        });

        var prefix_party = ctx + "system/CaseAggregatedActivity";
        $(function() {
            var options = {
                url: prefix_party + "/list",
                id: "bootstrap-table-party",
                createUrl: prefix_party + "/add",
                updateUrl: prefix_party + "/edit/{id}",
                removeUrl: prefix_party + "/remove",
                exportUrl: prefix_party + "/export",
                modalName: "病例聚集性活动信息",
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'id',
                        title: 'ID',
                        visible: false
                    },
                    {
                        field: 'actiPlace',
                        title: '活动地点'
                    },
                    {
                        field: 'actiplaDetail',
                        title: '具体地点'
                    },
                    {
                        field: 'actiDate',
                        title: '活动日期'
                    },
                    {
                        field: 'actiStartTime',
                        title: '开始时间'
                    },
                    {
                        field: 'actiEndTime',
                        title: '结束时间'
                    },
                    {
                        field: 'activityUnit',
                        title: '活动负责单位'
                    },
                    {
                        field: 'actiDetail',
                        title: '活动描述文本'
                    }]
            };
            $.table.init(options);
        });

    </script>
</body>
</html>